'use strict';
exports.main = async (event, context) => {
	if (event.type == '全部') {
		return await uniCloud
			.database()
			.collection('imgList')
			.get()
	} else if (event.type == '推荐') {
		return await uniCloud
			.database()
			.collection('imgList')
			.get()
	} else {
		return await uniCloud
			.database()
			.collection('imgList')
			.where({
				type: event.type
			})
			.get()
	}

};